package edu.spec.wfl.week07.class1.homework;

import edu.spec.wfl.week07.class1.homework.Chinese;

public class Sichuaner extends Chinese {
    // TODO 给language赋初值“四川话”
    private String language="四川话";    // 语言

    // TODO 默认构造方法，方法里实现输出打印“我是四川人，我很幸福。”
    public Sichuaner(){
        System.out.println("我是四川人，我很幸福");
    }

    // TODO 自定义构造方法，参数对应4个成员变量的值，方法体完成4个成员变量的初始化
    public Sichuaner(String area,String mainFood,String skinColor,String language){
        this.setArea(area);
        this.setMainFood(mainFood);//初始化赋值
        this.setSkinColor(skinColor);
        this.language=language;
    }

    // TODO language的getter和setter
    public void setLanguage(String language){
        this.language=language;
    }
    public String getLanguage(){
        System.out.println(super.getLanguage());
        return  language;
    }

    public void speak(){
        super.speak();
        System.out.println("我说"+language);
    }
}

